package com.durian.affairs.api;

import com.durian.affairs.api.domain.CwReceiptPlan;
import com.durian.common.core.constant.ServiceNameConstants;
import com.durian.common.core.domain.R;
import com.durian.common.core.web.domain.AjaxResult;
import com.durian.financial.api.domain.vo.ContractVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author zhouzhiyi
 * @Date 2022/6/27 20:32
 * @Description 收款计划controller远程调用接口
 */
@FeignClient(contextId = "remoteCReceiptPlanService", value = ServiceNameConstants.AFFAIRS_SERVICE,path = "/cwReceiptPlan")
public interface RemoteCReceiptPlanService {

    @GetMapping("/listReceiptPlanByContract")
    public R<List<CwReceiptPlan>> listReceiptPlanByContract (@SpringQueryMap ContractVO vo);

    @PutMapping("/updateStatus")
    public AjaxResult updateStatus(@RequestBody CwReceiptPlan cwReceiptPlan);
}
